//using Interface4UnitTesting;
using System;
using Xunit;

namespace _028接口_依赖反转_单元测试3_单元测试.Test
{
     public class DeskFanTest
  {
      [Fact]
      public void PowerLowerThanZero_OK()
      {
          var fan=new DeskFan(new PowerSupplyLowerThanZero());
          var expected = "Wont't Work";
          var actual = fan.Work();
          Assert.Equal(expected, actual);
      }
  }

  class PowerSupplyLowerThanZero : IPowerSupply
  {
      public int GetPower()
      {
          return 0;
      }
  }
}